package com.kehutong.payfees.entity.receipt;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.util.List;

/**
 * @program: kht
 * @description: 票据管理
 * @author: joneron
 * @create: 2021/5/28
 **/
@Table(value="t_charge_receipt_manage", comment="票据管理表", multi = true, idType = IDType.TIMESTAMP)
public class ReceiptManage extends DataEntity {

    private static final long serialVersionUID = -7109418941763255187L;

    protected ReceiptManage(String id) {
        super(id);
    }

    @CheckField("收据名称不能为空")
    @Column(comment="收据名称")
    private String receiptName;

    @CheckField("抬头名称不能为空")
    @Column(comment="抬头名称")
    private String receiptTitleName;

    @Column(comment="所属小区")
    private List<String> communityList;

    @Column(comment = "模板id")
    private String receiptTempId;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment = "文件ID")
    private String fileId;

    @Column(comment = "印章图片id")
    private String sealImgId;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    public String getReceiptName() {
        return receiptName;
    }

    public void setReceiptName(String receiptName) {
        this.receiptName = receiptName;
    }

    public List<String> getCommunityList() {
        return communityList;
    }

    public void setCommunityList(List<String> communityList) {
        this.communityList = communityList;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getSealImgId() {
        return sealImgId;
    }

    public void setSealImgId(String sealImgId) {
        this.sealImgId = sealImgId;
    }

    public String getReceiptTempId() {
        return receiptTempId;
    }

    public void setReceiptTempId(String receiptTempId) {
        this.receiptTempId = receiptTempId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getReceiptTitleName() {
        return receiptTitleName;
    }

    public void setReceiptTitleName(String receiptTitleName) {
        this.receiptTitleName = receiptTitleName;
    }

}
